import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';

class StandardizationRiskMgmtMenuType implements ChoiceBean {
  StandardizationRiskMgmtMenuType(this.name);

  final String name;

  bool isChecked = false;

  static final regulation = StandardizationRiskMgmtMenuType('安全风险辨识制度管理');
  static final sign = StandardizationRiskMgmtMenuType('实施方案');
  static final control = StandardizationRiskMgmtMenuType('风险控制');
  static List<StandardizationRiskMgmtMenuType> get all => [regulation, sign, control];

  @override
  String getId() => name;

  @override
  String getShowName() => name;

  @override
  bool getIsChecked() => isChecked;

  @override
  void setIsChecked(bool isChecked) {
    this.isChecked = isChecked;
  }

  String get path {
    switch (name) {
      case '安全风险辨识制度管理':
        return '/standard//riskIdentification/getIdentificationManagementSystemPage';
      case '实施方案':
        return '/standard//embodiment/getEmbodimentPage';
      case '风险控制':
        return '/standard//RiskManagement/getRiskManagementPage';
      default:
        return '';
    }
  }
}